<?php

namespace app\common\enums;

class TimeApplyTypeEnum extends BaseEnum
{
    // 定义常量
    public const E1 = '1';
    public const E2 = '2';

    // 定义描述
    public array $description = [
        self::E1 => '休息',
        self::E2 => '上课',
    ];

    public array $trainerTimeStatus = [
        self::E1 => TrainerTimeStatusEnum::RELAX,
        self::E2 => TrainerTimeStatusEnum::IDLE,
    ];

    public function getTrainerTimeStatus($value)
    {
        return $this->trainerTimeStatus[$value] ?? '';
    }

}
